package com.hskn.hss.module.tlcostoperate.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hskn.hss.core.annotation.DataScope;
import com.hskn.hss.core.domain.BaseEntity;
import com.hskn.hss.entity.AjaxResult;
import com.hskn.hss.exception.ExcelReaderDataException;
import com.hskn.hss.exception.HssException;
import com.hskn.hss.module.tlcostoperate.entity.TlCostOperate;
import com.hskn.hss.module.tlcostoperate.to.CostOperateCfgListTO;
import com.hskn.hss.module.tloilcostcfg.entity.TlOilcostCfg;
import com.hskn.hss.module.tloilcostcfg.to.TlOilcostCfgListTO;
import com.hskn.hss.module.tlrepaircfg.entity.TlRepairCfg;
import com.hskn.hss.to.ForIdsTO;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author hskn
 * @since 2021-05-20
 */
public interface ITlCostOperateService extends IService<TlCostOperate> {
    AjaxResult insert(JSONObject params) throws HssException;

    AjaxResult update(JSONObject params) throws HssException;

    JSONObject getList(BaseEntity entity,JSONObject params) throws HssException;

    AjaxResult deletebyid(ForIdsTO forIdsTO) throws HssException;

    TlCostOperate getDetail(JSONObject params) throws HssException;

    void excelReader(List<TlCostOperate> costOperateList, String types) throws ExcelReaderDataException;
    @DataScope(deptAlias = "waterdept", userAlias = "createby")
    List<TlCostOperate> getTlCostOperate(CostOperateCfgListTO costOperateListTo, SimpleDateFormat format) throws ParseException;


}
